package com.lct.d2_static_method;

public class Student {
    double score;

    public static void printHelloWorld(){
        for (int i = 0; i < 3; i++) {
            System.out.println("Hello World!!");
        }
    }


    //实例方法，必须使用对象访问
    public void printPass(){
        System.out.println(score >= 60 ? "通过" : "挂科");
    }
}
